package com.egao.common.module.employment.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lym
 * @date 2023/4/26 10:05
 */
@Data
@ApiModel(description = "学院后期促进就业过程")
@TableName("employment_process")
public class EmploymentProcess implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("填报用户ID")
    private Integer userId;

    @ApiModelProperty("填报用户学院ID")
    private Integer collegeId;

    @ApiModelProperty("事项")
    private String matter;

    @ApiModelProperty("对应工作举措")
    private String measures;

    @ApiModelProperty("进度要求")
    private String requirement;

    @ApiModelProperty("本周执行次数(人数)")
    private Integer number;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("周开始时间")
    private Date startTime;

    @ApiModelProperty("周结束时间")
    private Date endTime;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("学院名称")
    @TableField(exist = false)
    private String collegeName;

    public EmploymentProcess() {}

    public EmploymentProcess(Integer sort, String matter, String measures, String requirement) {
        this.sort = sort;
        this.matter = matter;
        this.measures = measures;
        this.requirement = requirement;
    }
}
